#!/bin/bash        

BUMPSLIDE_LIB=/Users/tkdave/work/bumpslide_lib
DESTINATION=/Users/tkdave/desktop/new_project

set -e;                                

# copy  app_template to desktop  
cp -R $BUMPSLIDE_LIB/examples/app_template/  $DESTINATION   

# add bumpslide libs, tweener, and fl classes
cp -R $BUMPSLIDE_LIB/classes/caurina $DESTINATION/src/classes
cp -R $BUMPSLIDE_LIB/classes/fl $DESTINATION/src/classes
cp -R $BUMPSLIDE_LIB/classes/com/bumpslide $DESTINATION/src/classes/com

# clean up SVN crap if found                       
find $DESTINATION -name .svn | xargs rm -rf

# zip that shit
 
#BUILDNAME=bumpslide_as3_`date +%Y%m%d`   
#mv tmp $BUILDNAME   
#zip -q -r $BUILDNAME.zip $BUILDNAME
#rm -rf $BUILDNAME        
#mv $BUILDNAME.zip builds/